package cn.tips.dmp.supports.result;

import cn.tips.dmp.supports.result.ApiResultDTO.Builder;

/**
 * @author pkb
 */
public class ApiResultGenerator {
    public ApiResultGenerator() {
    }

    public static ApiResultDTO create(String code, String msg) {
        return (new Builder(code, msg)).create();
    }

    public static ApiResultDTO create(String code, String msg, Object content) {
        return (new Builder(code, msg)).addContent(content).create();
    }
}
